package custom.security.core.validate.code.image;

import custom.security.core.validate.code.DefaultValidateCode;
import lombok.Data;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * 图片验证码实体类
 * Created by wgt on 2017/10/14.
 */
@Data
public class ImageValidateCode extends DefaultValidateCode {

    private BufferedImage image;

    public ImageValidateCode() {
    }

    public ImageValidateCode(String code, LocalDateTime expireTime, BufferedImage image) {
        super(code, expireTime);
        this.image = image;
    }

    public ImageValidateCode(String code, int InExpire, BufferedImage image) {
        super(code, InExpire);
        this.image = image;
    }
}
